package com.lhyl.front.common;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	public static SimpleDateFormat timeformat=new SimpleDateFormat("HH:mm:ss");
	public static SimpleDateFormat dateformat=new SimpleDateFormat("yyyy-MM-dd");
	public static SimpleDateFormat dateShortFormat=new SimpleDateFormat("yyyyMMdd");
	
	public static String getTimeString(Date date){
		return timeformat.format(date);
	}
	
	public static String getDateString(Date date){
		return dateformat.format(date);
	}
	
	public static String getShortDateString(Date date){
		return dateShortFormat.format(date);
	}
}
